package net.ikenway.springboot.demo.Dao;

import net.ikenway.springboot.demo.Model.Entity.ProductSort;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/17/2020
 */
public interface ProductSortRepository extends CrudRepository<ProductSort, Long> {
    public ProductSort findBySortName(String sortName);


    public List<ProductSort> findAllByEnableOrderByDisplayOrder(boolean enable);
}
